<template>
	<view>
		<dsl-navbar title="设置" bgTopImg="white" isBack></dsl-navbar>
		<view class="padding-xs " style="background-color: #F6F6F6;"> </view>
		<view class="padding solid-bottom justify-between align-center" v-for="(item,index) in list" :key='index'
			@click="plugins(item)">
			<view>{{item.title}}</view>
			<view class="cuIcon-right"></view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				list: [
					
					{
						id: 1,
						title: '关于我们'
					},
					{
						id: 2,
						title: '隐私政策'
					},
					{
						id: 0,
						title: '用户协议'
					},
					
					{
						id: 8,
						title: '清除缓存'
					}
				]
			}
		},
		//生命周期函数
		onReady() {},
		onLoad() {},
		onShow() {},
		methods: {
			plugins(item) {
				if (item.id == 8) {
					this.$tools.showToast('清楚缓存成功！')
					return false
				}
				this.$tools.push('/pages/plugins/richText?title=' + item.title +'&type='+item.id)
			}
		},
		computed: {},
		components: {}
	}
</script>

<style>
</style>
